//
//  GMNewsViewCell.m
//  Teecloud
//
//  Created by 小熊 on 2018/6/26.
//  Copyright © 2018年 小熊. All rights reserved.
//

#import "GMNewsViewCell.h"
#import "XZNewsList.h"

@interface GMNewsViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *newsIconImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *originalLabel;
@property (weak, nonatomic) IBOutlet UILabel *commentCountLabel;

@end
@implementation GMNewsViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(XZNewsList *)model{
    _model = model;
    [self.newsIconImageView yy_setImageWithURL:[NSURL URLWithString:model.HeadUrl] placeholder:DefealtImg];
    self.titleLabel.text = model.Name;
    self.originalLabel.text = model.Source;
    self.commentCountLabel.text = [NSString stringWithFormat:@"%@ 评论",model.RemarkCount];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
